home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / Internet / Info / Internet Roadmap.sit / Internet Roadmap ƒ / Map 13 Ftp (Part 1)↵ < prev    next >
Encoding:
Text File  |  1995-02-14  |  9.3 KB  |  238 lines  |  [ttro/ttxt]

  1. MAP13: FTP (PART 1)
  2. -------------------
  3.  
  4.      "The desire of knowledge, like the thirst of riches, increases
  5.       ever with the acquisition of it." -- Laurence Sterne, Tristram
  6.       Shandy
  7.  
  8.  
  9. Welcome back to the third week of the Roadmap workshop! I hope
  10. that you are having as much fun participating in this workshop
  11. as I am having teaching it! :)
  12.  
  13. Last week we used a tool called "Telnet" which allowed us to access
  14. remote computers and run programs on those remote computers.
  15.  
  16. This week we are going to use a tool called "File Transfer Protocol"
  17. (or "FTP") which will allow us to access remote computers and retrieve
  18. files from these computers. Actually, it is probably more accurate
  19. to say that we will be using "anonymous" FTP, but I'll explain that
  20. in a minute.
  21.  
  22. What sort of files are available through FTP?  Well, "hundreds of
  23. systems connected to the Internet have file libraries, or archives,
  24. accessible to the public. Much of this consists of free or low-cost
  25. {computer} programs for virtually every make of computer. If you
  26. want a different communications program for your IBM, or feel like
  27. playing a new game on your Amiga, you'll {probably} be able to get it
  28. {using FTP}."
  29.  
  30. "But there are also libraries of documents as well. If you want a
  31. copy of a recent U.S. Supreme Court decision, you can {get a copy
  32. using FTP}. Copies of historical documents, from the Magna Carta to
  33. the Declaration of Independence are also yours for the asking ...
  34. You can also find song lyrics, poems, {and} even summaries of
  35. every {Animaniacs} episode ever made. You can also find extensive
  36. files detailing everything you could possibly want to know about
  37. the Net itself" (1)
  38.  
  39. Before we get too in-depth into FTP, I think that now is as good
  40. a time as any to quickly review the client/server relationship
  41. that I briefly mentioned in lesson three (MAP03: Levels of Internet
  42. Connectivity).
  43.  
  44. "Client" is just another word for a program running on your
  45. service provider's system that enables you to talk to, and get
  46. stuff from, distant computers. The client on your service provider's
  47. system takes your commands and turns them into requests for information
  48. from programs -- "servers" -- running on other, distant computers.
  49.  
  50. The client/server relationship allows you to TELNET into remote
  51. computers and run programs on those remote computers, and it also
  52. allows you to use FTP to get files from remote sites.
  53.  
  54. The client/server relationship is also what makes my job as an Internet
  55. trainer quite difficult. While all of the FTP clients out there do the
  56. exact same thing, they all use different commands to do it.
  57.  
  58. Fortunately, if you can understand the basics of what happens during
  59. an FTP session, the commands -- no matter what client you are using --
  60. are pretty easy.
  61.  
  62. The basic steps in an FTP session are:
  63.  
  64.      1. Start-up your FTP client
  65.      2. Give your FTP client an address to connect to (and, just
  66.         like TELNET, step one and two can be combined into one
  67.         easy step).
  68.      3. Identify yourself to the remote site
  69.      4. Give the remote site your password
  70.      5. Look around the directory for files
  71.      6. Change Directories
  72.      7. Set the transfer mode (optional)
  73.      8. Get the file(s) you want
  74.      9. Quit
  75.  
  76. The best way to understand what is going on is to look at a sample
  77. FTP session. The University of Alabama's connection to the Internet
  78. is through SURAnet (a large regional network), so I'm going to FTP
  79. to them.
  80.  
  81. Before I do that, though, there are three things that I need to
  82. emphasize:
  83.  
  84.      1. FTP requires a heck of a lot of resources, both on your
  85.         system and on the remote system that you are accessing.
  86.         Because of this, FTP sessions should only be run during
  87.         non-working hours (usually 6 PM to 6 AM local).
  88.  
  89.         I realize that this constraint is going to be a difficult
  90.         for those of you who are reading this at work, and who only
  91.         have Internet (and FTP access) through your employer. However,
  92.         as responsible Internet citizens we have to remember that
  93.         the FTP sites are providing us FTP access out of the kindness
  94.         of their hearts. If we take advantage of this kindness, and
  95.         access various FTP sites during working hours, those FTP
  96.         sites may decide to close their doors to the public ... and
  97.         then EVERYONE loses.
  98.  
  99.      2. In light of what was said in #1, please do not flood SURAnet.
  100.         Later this week I will post a list of FTP sites that you
  101.         can visit (much like the TELNET list I posted Friday).
  102.         Until I post that list, just sit back and enjoy the show :)
  103.  
  104.      3. Since this lesson is already over 100 lines long, I hope that
  105.         you won't mind if I break this FTP lesson into two lessons.
  106.         The first lesson will be today, and I'll finish tomorrow.
  107.         This will mean that we will end this lesson in the middle
  108.         of our sample FTP session, but it will also mean that this
  109.         lesson won't be the size of a small book :)
  110.  
  111. Starting an FTP session is pretty easy. For most of you, all you
  112. have to do to start-up your FTP client is type
  113.  
  114.           ftp
  115.  
  116. on you system's command line (or, if you are in a Windows or Mac
  117. environment, double-click on the FTP icon).
  118.  
  119. From there, you would give the client an FTP address to connect to.
  120.  
  121. Like TELNET, however, there is a way to combine these two steps into
  122. one, easy step. For most of you, to access your FTP client and give
  123. your client an address to hook up to, all you would have to do it
  124. type the command
  125.  
  126.           ftp <site address>
  127.  
  128. and replace <site address> with the address of the FTP site that you
  129. want your client software to access.
  130.  
  131. In our example, the SURAnet FTP address is ftp.sura.net, so I would type
  132.  
  133.           ftp ftp.sura.net
  134.  
  135. to start an FTP session. (Note that the second "ftp" is part of
  136. SURAnet's FTP address. If I wanted to ftp to info.umd.edu, I would
  137. type "ftp info.umd.edu"; if I wanted to ftp to lcs.mit.edu, I would
  138. type "ftp lcs.mit.edu").
  139.  
  140. Once I hit the enter key, the following appears on my screen:
  141.  
  142.    ftp ftp.sura.net
  143.    Connecting to ftp.sura.net 128.167.254.179, port 21
  144.    220 nic.sura.net FTP server (Version wu-2.4(1) Fri May 20 10:20:58
  145.    EDT 1994) ready.
  146.    USER (identify yourself to the host):
  147.  
  148. The second line tells me that my system is connecting to ftp.sura.net
  149. (and even gives me the IP number for ftp.sura.net), the third line is
  150. some automatic information from SURAnet, and the bottom line is asking
  151. me to log in.
  152.  
  153. If I had an account on the SURAnet system, I would enter my SURAnet
  154. user ID. But, since I don't have an account on this system, I have
  155. to find another way to access the system. ;)
  156.  
  157. This is where the "anonymous" FTP I mentioned earlier comes in :)
  158. The other way to access some FTP sites -- at least those FTP sites
  159. that allow outside access -- is to use the userid "anonymous".
  160. By using the name "anonymous", you are telling that FTP site that
  161. you aren't a regular user of that site, but you would still like to
  162. access that FTP site, look around, and retrieve files.
  163.  
  164. So, where it says USER, I type the word
  165.  
  166.           anonymous
  167.  
  168. hit enter, and cross my fingers. If SURAnet does not allow anonymous
  169. access, I'm about to find out :)
  170.  
  171.    >>>USER anonymous
  172.    331 Guest login ok, send your complete e-mail address as password.
  173.    Password:
  174.  
  175. COOL! Its going to let me in. All I have to do is give the site a
  176. password.
  177.  
  178. Out of politeness to the FTP site, if you login as "anonymous", you
  179. need to use your full Internet address as your password. This helps
  180. the FTP site keep track of who has visited its site.
  181.  
  182. So, since it wants my password, and since the password for any
  183. anonymous FTP session is my full Internet address, I type
  184.  
  185.           pcrispe1@ua1vm.ua.edu
  186.  
  187. (Stop laughing -- p-crispy-one is *NOT* funny!!). Once I hit enter,
  188. my screen fills with the following:
  189.  
  190.    >>>PASS ********
  191.    230-    SURAnet ftp server running wuarchive experimental ftpd
  192.    230-
  193.    230-Welcome to the SURAnet ftp server.  If you have any problems with
  194.    230-the server please mail the to systems@sura.net. If you do have problems,
  195.    230-please try using a dash (-) as the first character of your password
  196.    230- -- this will turn off the continuation messages that may be confusing
  197.    230-your ftp client.
  198.    ...
  199.    230 Guest login ok, access restrictions apply.
  200.    Command:
  201.  
  202. Notice the line "Guest login ok, access restrictions apply." This
  203. means that the site has given me access, but I only have access to
  204. the files that are available to the general public.
  205.  
  206. Okay ... now what? I've started-up my FTP client, I've given the client
  207. an FTP address to connect to, I've identified myself to the remote site
  208. (I told it that I am anonymous), and I've given the site my password.
  209.  
  210. Now it's time to see what sort of files and directories are around, and
  211. to get those files ... which we will do tomorrow :)
  212.  
  213. HOMEWORK:
  214.  
  215.      1. See if your local Internet service provider has a handout
  216.         on FTP commands.
  217.  
  218.      2. If you do not have FTP access, please be patient. I'll
  219.         show you how to access FTP by e-mail on Wednesday.
  220.  
  221.      3. There *WILL* be a pop quiz sometime this week, and
  222.         the quiz will cover lessons 1-10 :)
  223.  
  224.  
  225. SOURCES:
  226.  
  227. (1) The "EFF's Guide to the Internet", reprinted by permission.
  228.  
  229.  
  230.    PATRICK DOUGLAS CRISPEN    THE VIEWS EXPRESSED IN THIS LETTER DO NOT
  231.     PCRISPE1@UA1VM.UA.EDU      NECESSARILY REPRESENT THE VIEWS OF THE
  232.   THE UNIVERSITY OF ALABAMA      UNIVERSITY OF ALABAMA - TUSCALOOSA
  233.  
  234.       ROADMAP: COPYRIGHT PATRICK CRISPEN 1994. ALL RIGHTS RESERVED.
  235.  
  236.  
  237.  
  238.